/**
 *
 * @properties={typeid:24,uuid:"C1DADE92-A472-468A-BB63-DF728A0D0350"}
 */
function cancelar() {
	_super.cancelar()
	salir()
}

/**
 *
 * @properties={typeid:24,uuid:"B3AF461A-9125-405B-80A6-0EAC44B52291"}
 */
function guardar() {
	if (_super.guardar() == true)
	{
		salir()
	}
}

/**
 * @properties={typeid:24,uuid:"E26F1F22-C0C3-4E0A-AF31-91D7C5ABBACF"}
 */
function salir()
{
	databaseManager.setAutoSave(true)
	var $win = application.getWindow('ALTA_TARIFA')
	$win.hide()
	$win.destroy()
}

/**
 * @param {Boolean} firstShow
 * @param {JSEvent} event
 *
 * @properties={typeid:24,uuid:"BC2ED4F8-FAB2-4683-9F68-75A1A4C790E2"}
 */
function onShow(firstShow, event) {
	_super.onShow(firstShow,event)
	controller.newRecord()
}
